/*
 * @Description: 
 * @Version: 
 * @Company: 杭州凯立通信有限公司
 * @Author: Jesen
 * @Date: 2018-11-22 17:50:50
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2018-11-26 10:35:14
 */
import Vue from 'vue';
import App from './App';
import router from './router';
import { getRequest, postRequest, uploadFileRequest, deleteRequest, putRequest, getRequestParams } from './util/api'
import ElementUI from 'element-ui';
import store from './store';
import 'element-ui/lib/theme-chalk/index.css'; // 默认主题
// import '../static/css/theme-green/index.css'; // 浅绿色主题
import '../static/css/icon.css';
import "babel-polyfill";

Vue.use(ElementUI, { size: 'mini' });

//对接restful APi交互方式工具类
Vue.prototype.getRequest = getRequest;
Vue.prototype.uploadFileRequest = uploadFileRequest;
Vue.prototype.postRequest = postRequest;
Vue.prototype.deleteRequest = deleteRequest;
Vue.prototype.putRequest = putRequest;
Vue.prototype.getRequestParams = getRequestParams;

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');